/**
 * Created by DELL on 2017/6/16.
 */

//自定义 Inputtext



import React, { Component } from 'react';
import {

    StyleSheet,
    View,
    TextInput,

} from 'react-native';


export default class LoginButton extends Component {
    constructor(props) {
        super(props);
        this.state = {text: ''};
    }
    render() {
        return (
            <TextInput
                underlineColorAndroid={'transparent'}
                keyboardType='numeric'
                clearButtonMode='while-editing'
                multiline={false}
                maxLength={this.props.maxLength}
                style={[styles.input2,this.props.style]}
                placeholder={this.props.placeholder}
                placeholderTextColor={this.props.placeholderTextColor}
                onChangeText={this.props.onChangeText}
               />
        );
    }
}
const styles = StyleSheet.create({


    input2: {
        //borderColor:'white',
        marginTop:20,
        width: '96%',
        height: 40,
        backgroundColor:'white'
    },
});